{%extends "base.xhtml"%}
{% load i18n %}
{% load ham %}
{%block content%}
	<h2>{%trans "Add contest"%}</h2>
	{% if form.has_errors %}
	{%trans "Correct following errors"%}
	{%endif%}

	<form method="post" action="{%href ""%}">
	<p>
		<label for="id_name">{%trans "Contest name"%}</label>
		{{ form.name }}
        	{% if form.name.errors %}*** {{ form.name.errors|join:", " }}{% endif %}
	</p>
	<p>
		<label for="id_slug">{%trans "Contest system name"%}</label>
		{{ form.slug }}
        	{% if form.slug.errors %}*** {{ form.slug.errors|join:", " }}{% endif %}
	</p>
	<p>
		<label for="id_startTime">{%trans "Date when contests starts"%}</label>
		{{ form.startTime }}
        	{% if form.startTime.errors %}*** {{ form.startTime.errors|join:", " }}{% endif %}
	</p>
	<input type="submit" value="{%trans "Add contest"%}"/>
	</form>
{%endblock%}



